package com.boot.start.service.impl;

import com.boot.start.entity.Employee;
import com.boot.start.repository.EmployeeRepository;
import com.boot.start.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 墨龙吟
 * @version 1.0.0
 * @ClassName EmployeeServiceImpl.java
 * @Email 2354713722@qq.com
 * @Description TODO
 * @createTime 2020年05月19日 - 21:31
 */
@Service
public class EmployeeServiceImpl implements EmployeeService {

    @Autowired
    private EmployeeRepository employeeRepository;

    @Override
    public List<Employee> getEmployeeList() {
        return employeeRepository.findAll();
    }
}
